﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;

namespace WindowsFormProject.Depo
{
  public  class ConnectionProvider
    {
        private ConnectionProvider()
        { }

        public static SqlConnection CreateConnection()
        {
            SqlConnection newConnection = new SqlConnection(ConnectionString);

            return newConnection;
        }

        public static string ConnectionString
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
            }
        }

    }
}
